<div class="matches form">
<?php echo $this->Form->create('Match'); ?>
	<fieldset>
		<legend><?php echo __('Edit Match'); ?></legend>
	<?php
		echo $this->Form->input('id');
		echo $this->Form->input('championship_id');
		echo $this->Form->input('home',array('empty' => true));
		echo $this->Form->input('visitor',array('empty' => true));
		echo $this->Form->input('scoreA',array('default' => 0));
		echo $this->Form->input('scoreB',array('default' => 0));
		echo $this->Form->input('type', array(
            'options' => array('Grupo' => 'Grupo', 'Octavos' => 'Octavos', 'Cuartos' => 'Cuartos',
			'Semifinal' => 'Semifinal', 'Final' => 'Final')));
		echo $this->Form->input('place');
		echo $this->Form->input('start');
		echo $this->Form->input('ended');
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit')); ?>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $this->Form->value('Match.id')), null, __('Are you sure you want to delete # %s?', $this->Form->value('Match.id'))); ?></li>
		<li><?php echo $this->Html->link(__('List Matches'), array('action' => 'index')); ?></li>
		<li><?php echo $this->Html->link(__('List Championships'), array('controller' => 'championships', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Championship'), array('controller' => 'championships', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Teams'), array('controller' => 'teams', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Local'), array('controller' => 'teams', 'action' => 'add')); ?> </li>
	</ul>
</div>
